clear all;
clc;

if(exist('filename', 'var') == 0)
    [filename, pathname] = uigetfile('.log');
    file = fopen(fullfile(pathname, filename), 'r');
    
    % Name xCoord yCoord zCoord eDeposit
    input = fscanf(file,'%e\t%e\n',[2 inf]);
    
    % Bitte daran denken das File zu schliessen, sonst gibt es Probleme
    fclose(file);
    % Eventuell an diese Stelle ein 'close all'
end

plot(input(1,:), input(2,:));
grid on;
grid minor;
xlabel('Energie in keV');